function replaceDictionary(baseUrl) {
    var searchTerm = ['PWM','dmx8','bla'];
    $("p").each(function() {
        var keywords = $(this)[0].innerHTML;
        $.each(searchTerm, function( index, value ) {
            var rSearchTerm = new RegExp('\\b' + value + '\\b','i'); 
            keywords=keywords.replace(rSearchTerm,"<a href=\""+baseUrl+"/index.php/site/dictionary#"+value+"\">"+value+"</a>");
        });
        $(this).html(keywords);
    });
}